package cn.x.kindergarten.service;

import java.io.Serializable;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.x.kindergarten.dao.TeacherDao;
import cn.x.kindergarten.domain.Teacher;

@Service("teacherService")
public class TeacherServiceImpl implements TeacherService {
	@Resource(name="teacherDao")
	public TeacherDao teacherDao;

	@Override
	public Teacher query(Serializable id) {
		return this.teacherDao.query(id);
	}

	@Override
	public void insert(Teacher teacher) {
		this.teacherDao.insert(teacher);
	}

	@Override
	public void update(Teacher teacher) {
		this.teacherDao.update(teacher);
	}

	@Override
	public void delete(Serializable id) {
		this.teacherDao.delete(id);
	}

	@Override
	public List<Teacher> queryAll() {
		return this.teacherDao.queryAll();
	}

}
